import request from '@/utils/request'

// 查询关键字信息列表
export function listWords(query) {
  return request({
    url: '/ggsearch/words/list',
    method: 'get',
    params: query
  })
}

// 查询关键字信息详细
export function getWords(keyId) {
  return request({
    url: '/ggsearch/words/' + keyId,
    method: 'get'
  })
}

// 新增关键字信息
export function addWords(data) {
  return request({
    url: '/ggsearch/words',
    method: 'post',
    data: data
  })
}

// 修改关键字信息
export function updateWords(data) {
  return request({
    url: '/ggsearch/words',
    method: 'put',
    data: data
  })
}

// 删除关键字信息
export function delWords(keyId) {
  return request({
    url: '/ggsearch/words/' + keyId,
    method: 'delete'
  })
}
